package com.reins.bookstore.service;

import com.reins.bookstore.entity.Orders;
import com.reins.bookstore.object.*;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


public interface OrderService {

    Orders findOrderById(Integer id);


    List<Orders> findOrdersByUserId(Integer id);

    List<OrderDTO> findAllOrders(Filter filter);

    List<OrderDTO> findAllOrders();


    List<OrderDTO> findGlobalOrders();

    List<HotListDTO> getHotBooks(Filter filter);
    public Orders saveOrder(Orders add);

    public Orders editOrder(Orders edit);

    public boolean deleteOrderById(int id);

    boolean deleteOrderByUserId(Integer userId);

    public BigDecimal buyOneBook(OneBookOrder params);

    public BigDecimal buyThreeBooks(ThreeBooksOrder params);

}
